package controller;

import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleListProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.collections.FXCollections;
import javafx.fxml.FXML;
import javafx.scene.control.*;
import javafx.scene.image.Image;
import javafx.scene.layout.FlowPane;

import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;

/**
 * Created by PanD
 */

public class RootLayoutController {

    @FXML
    private FlowPane previewPane;
    @FXML
    private ScrollPane scrollPane;

    //上下文菜单
    @FXML
    private ContextMenu contextMenu;
    //菜单项
    @FXML
    private MenuItem createFileMenuItem;
    @FXML
    private MenuItem createDirMenuItem;
    @FXML
    private MenuItem deleteMenuItem;

    //路径导航栏的Label
    @FXML
    private Label pathLabel;
// 初始化 -----------------------------------------------------------------------------------
    @FXML
    public void initialize() {
        initPreview();
    }

    /**
     * description: 图片预览区域的初始化
     * @param
     * @return void
     */
    public void initPreview() {
        previewPane.prefWidthProperty().bind(scrollPane.widthProperty());
        pathLabel.setText("这里是导航栏");
        pathLabelListener();
    }

//监听 ------------------------------------------------------------------------------------
    /**
     * description: 对路径进行监听
     * @param
     * @return void
     */
    private void pathLabelListener() {
    }
}
